import type { App } from 'vue'
/*------------------dom-----------------*/
import * as dom from './dom'
export * from './dom'

/*------------------tool-----------------*/
import * as tool from './tool'
export * from './tool'

/*------------------util-----------------*/
import * as util from './utils'
export * from './utils'

/*------------------func-----------------*/
import * as func from './func'
export * from './func'

/*------------------http-----------------*/
import http from './http'

/*------------------vue-----------------*/
import { withInstall } from './vue/install'

export { dom, tool, util, func, http, withInstall }

export * from './http/http.d'

export * from './vue'
export * from './types'
export * from './error'

//提供自动注册
export default {
  install: (app: App) => {
    //app.config.globalProperties['$utils'] =utils;
    app.config.globalProperties['$tool'] = tool
    app.config.globalProperties['$func'] = func
    app.config.globalProperties['$dom'] = dom
    app.config.globalProperties['$util'] = util
  },
}
